<template>
  <div>
    <el-tabs class="card p-2">
      <el-tab-pane label="受理项目库">
        <approval-store-house @success="handleApprovalSuccess"></approval-store-house>
      </el-tab-pane>
      <el-tab-pane label="我的项目">
        <my-project ref="myProject"></my-project>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import ApprovalStoreHouse from '@/bank/views/program/ApprovalStoreHouse'
import MyProject from '@/bank/views/program/MyProject'
export default {
  components: {
    ApprovalStoreHouse,
    MyProject,
  },
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  mounted() {},
  created() {},
  methods: {
    handleApprovalSuccess() {
      const myProject = this.$refs.myProject
      myProject && myProject.getData && myProject.getData()
    },
  },
}
</script>
<style lang="scss" scoped></style>
